/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.suai.system.impl;

import java.util.List;
import org.suai.system.MainSystem;
import org.suai.system.PackageGenerator;

/**
 *
 * @author awm
 */
public class MainSystemImpl implements MainSystem {
    
    private PackageGenerator generator;

    public MainSystemImpl(List systems, PackageGenerator generator) {
        this.generator = generator;
        this.generator.initialSystems(systems);
    }

    @Override
    public void doStep() {
        generator.generatePackages();
        generator.servicePackages();
    }

}
